import request from '@/utils/request'

// 查询入库列表
export function listRyDepotItem(query) {
  return request({
    url: '/warehouse/RyDepotItem/list',
    method: 'get',
    params: query
  })
}

// 查询入库详细
export function getRyDepotItem(id) {
  return request({
    url: '/warehouse/RyDepotItem/' + id,
    method: 'get'
  })
}

// 查询锁定数量
export function getLockNumById(params) {
  return request({
    url: '/warehouse/RyDepotItem/getLockNumById',
    method: 'get',
    params: params
  })
}


// 新增入库
export function addRyDepotItem(data) {
  return request({
    url: '/warehouse/RyDepotItem',
    method: 'post',
    data: data
  })
}

// 修改入库
export function updateRyDepotItem(data) {
  return request({
    url: '/warehouse/RyDepotItem',
    method: 'put',
    data: data
  })
}

// 删除入库
export function delRyDepotItem(id) {
  return request({
    url: '/warehouse/RyDepotItem/' + id,
    method: 'delete'
  })
}
